package com.woniu.his.dms.service;

import com.woniu.his.dms.infra.model.CaseHistory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.his.dms.service.dto.CaseHistoryDetailDto;
import com.woniu.his.dms.service.dto.CaseHistoryDto;
import com.woniu.his.dms.service.param.CaseHistorySvcParm;
import com.woniu.his.dms.service.param.DefiniteDiseSVParam;

import java.util.List;

/**
 * <p>
 * 病历表 服务类
 * </p>
 *
 * @author ZJH
 * @since 2022-11-27
 */
public interface CaseHistoryService extends IService<CaseHistory> {


    //提交首次诊断信息
    CaseHistoryDto submitPriliminaryDise(CaseHistorySvcParm caseHistorySvcParm);


    //确诊 开药
    void submitDefiniteDise(DefiniteDiseSVParam diseSVParam);


    //设置为诊毕状
    void endDiagnosis(Long caseHistoryId);

    //查询历史病例
    CaseHistoryDetailDto selectEndCaseHistoryByReg(Long caseHistoryId);

    //根据挂号id查询病历
    CaseHistoryDto queryCaseHistoryByRegId(Long RegId);

    //挂号时生成病历
    CaseHistoryDto createCaseHistoryWhenRegistration(Long patientId,Long skdId,Long registrationId);
}
